/// 资产备份状态模型
class AssetBackupStatusModel {
  final String assetId;
  final AssetBackupStatus status;
  final double progress;
  final String? error;
  final DateTime lastUpdated;

  AssetBackupStatusModel({
    required this.assetId,
    required this.status,
    this.progress = 0.0,
    this.error,
    DateTime? lastUpdated,
  }) : lastUpdated = lastUpdated ?? DateTime.now();

  @override
  String toString() {
    return 'AssetBackupStatusModel{assetId: $assetId, status: $status, progress: $progress, lastUpdated: $lastUpdated}';
  }
}

/// 资产备份状态枚举
enum AssetBackupStatus {
  pending, // 等待上传
  uploading, // 上传中
  processing, // 处理中
  completed, // 已完成
  failed, // 失败
}
